/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #ECFAE5;
    --color-secondary: #65DB77;
    --color-tertiary: #B0DB9C;
    --color-accent: #CAE8BD;
    --color-dark: #2c3e50;
    --color-text: #34495e;
    --color-text-light: #7f8c8d;
    --color-white: #ffffff;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Top Navigation */
.top-nav {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.top-nav .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.social-icons {
    display: flex;
    gap: var(--spacing-xs);
}

.social-icons a {
    color: var(--color-text);
    font-size: 0.9rem;
    padding: var(--spacing-xs);
    border-radius: 50%;
    /* background: rgba(255, 255, 255, 0.2); */
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    /* background: var(--color-accent); */
    color: var(--color-white);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.email {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Navigation */
.main-nav {
    background: var(--color-white);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 10px var(--color-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-nav.hidden {
    transform: translateY(-100%);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 30px;  width: auto;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.nav-logo .logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--color-shadow);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover {
    color: var(--color-text);
    background: rgba(152, 168, 248, 0.1);
    transform: translateY(-2px);
}

/* Unique hover effects for each menu item */
.nav-item:nth-child(1) .nav-link:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-tertiary));
}

.nav-item:nth-child(2) .nav-link:hover {
    background: linear-gradient(135deg, var(--color-tertiary), var(--color-accent));
}

.nav-item:nth-child(3) .nav-link:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.nav-item:nth-child(4) .nav-link:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-tertiary));
}

.nav-item:nth-child(5) .nav-link:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.nav-item:nth-child(6) .nav-link:hover {
    background: linear-gradient(135deg, var(--color-tertiary), var(--color-secondary));
}

.nav-item:nth-child(7) .nav-link:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(152, 168, 248, 0.2));
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
    color: var(--color-white);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    animation: slideInUp 1s ease-out;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    animation: slideInUp 1s ease-out 0.2s both;
}

.cta-button {
    background: linear-gradient(135deg, var(--color-accent), var(--color-tertiary));
    color: var(--color-white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    animation: slideInUp 1s ease-out 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(152, 168, 248, 0.4);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* hero section ends here */

/* 1st section starts from here */
   .pharma-section {
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container1 {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ========================================
   SECTION HEADING
   ======================================== */

.section-heading {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    color: #000000;
    margin-bottom: 60px;
    letter-spacing: 0.3px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   CONTACT BUTTON STYLING
   ======================================== */

.contact-btn-wrapper {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.contact-btn {
    display: inline-block;
    padding: 14px 34px;
    background: #25D366 ;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #B0DB9C;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.contact-btn:active {
    transform: scale(0.98);
}

/* ========================================
   PRODUCT GRID
   ======================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* ========================================
   PRODUCT CARD
   ======================================== */

.product-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 28px 26px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background-color: #ffffff;
}

/* ========================================
   CARD HEADER
   ======================================== */

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a252f;
    letter-spacing: 0.2px;
    flex: 1;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #2563eb;
}

/* ========================================
   ARROW ICON
   ======================================== */

.arrow-icon {
    color: #64748b;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .arrow-icon {
    color: #2563eb;
    transform: translateX(4px);
}

.product-card.active .arrow-icon {
    transform: rotate(90deg);
    color: #2563eb;
}

/* ========================================
   CARD DESCRIPTION
   ======================================== */

.card-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.product-card.active .card-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 20px;
}

.card-description p {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    color: #475569;
    letter-spacing: 0.2px;
}

/* ========================================
   ENHANCED CARD DESCRIPTION STYLING
   ======================================== */

/* Smooth readable text */
.card-description p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: #475569;
    letter-spacing: 0.2px;
    white-space: pre-line; /* preserves line breaks */
}

/* Highlighted text sections (like subheadings inside p) */
.card-description p strong,
.card-description p b {
    color: #1e3a8a;
    font-weight: 600;
}

/* Optional: visually separate long info blocks */
.card-description p {
    background-color: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 16px 18px;
    border-radius: 8px;
}

/* For better visual clarity in long text (like alkyds) */
.card-description p span.subheading {
    display: block;
    font-weight: 600;
    color: #1a252f;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* Expanded card animation improvement */
.product-card.active .card-description {
    max-height: 600px; /* allow more space for long paragraphs */
    opacity: 1;
    margin-top: 20px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Optional: custom scrollbar for neatness */
.product-card.active .card-description::-webkit-scrollbar {
    width: 6px;
}
.product-card.active .card-description::-webkit-scrollbar-thumb {
    background-color: rgba(37, 99, 235, 0.3);
    border-radius: 10px;
}

/* Typography enhancement for chemical names */
.product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.3px;
}

/* Subtle hover elevation effect */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.18);
}

/* Active state emphasis */
.product-card.active {
    background: linear-gradient(to bottom right, #ffffff, #f9fbff);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.2);
}

/* Responsive adjustments for better readability */
@media (max-width: 768px) {
    .card-description p {
        font-size: 14px;
        padding: 14px;
        line-height: 1.7;
    }

    .card-description p span.subheading {
        font-size: 14px;
        margin-top: 10px;
    }

    .product-card.active .card-description {
        max-height: 500px;
    }
}


/* ========================================
   ENHANCED CARD DESCRIPTION STYLING
   ======================================== */

/* Smooth readable text */
.card-description p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: #475569;
    letter-spacing: 0.2px;
    white-space: pre-line; /* preserves line breaks */
}

/* Highlighted text sections (like subheadings inside p) */
.card-description p strong,
.card-description p b {
    color: #1e3a8a;
    font-weight: 600;
}

/* Optional: visually separate long info blocks */
.card-description p {
    background-color: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 16px 18px;
    border-radius: 8px;
}

/* For better visual clarity in long text (like alkyds) */
.card-description p span.subheading {
    display: block;
    font-weight: 600;
    color: #1a252f;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* Expanded card animation improvement */
.product-card.active .card-description {
    max-height: 600px; /* allow more space for long paragraphs */
    opacity: 1;
    margin-top: 20px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Optional: custom scrollbar for neatness */
.product-card.active .card-description::-webkit-scrollbar {
    width: 6px;
}
.product-card.active .card-description::-webkit-scrollbar-thumb {
    background-color: rgba(37, 99, 235, 0.3);
    border-radius: 10px;
}

/* Typography enhancement for chemical names */
.product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.3px;
}

/* Subtle hover elevation effect */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.18);
}

/* Active state emphasis */
.product-card.active {
    background: linear-gradient(to bottom right, #ffffff, #f9fbff);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.2);
}

/* Responsive adjustments for better readability */
@media (max-width: 768px) {
    .card-description p {
        font-size: 14px;
        padding: 14px;
        line-height: 1.7;
    }

    .card-description p span.subheading {
        font-size: 14px;
        margin-top: 10px;
    }

    .product-card.active .card-description {
        max-height: 500px;
    }
}


/* ========================================
   ACTIVE CARD STATE
   ======================================== */

.product-card.active {
    background-color: #ffffff;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */

@media (max-width: 992px) {
    .section-heading {
        font-size: 24px;
        margin-bottom: 50px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-card {
        padding: 24px 22px;
    }

    .product-name {
        font-size: 17px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

@media (max-width: 640px) {
    .pharma-section {
        padding: 50px 16px;
    }

    .section-heading {
        font-size: 20px;
        line-height: 1.6;
        margin-bottom: 40px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        padding: 22px 20px;
    }

    .product-name {
        font-size: 15px;
    }

    .card-description p {
        font-size: 14px;
    }

    .arrow-icon {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   ACCESSIBILITY FOCUS STATES
   ======================================== */

.product-card:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.product-card:focus:not(:focus-visible) {
    outline: none;
}

/* ========================================
   SMOOTH SCROLLING
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* 1st section ends here */




/* Footer */
.footer {
    border-top: 1px solid rgba(177, 177, 177, 0.325);
    background: var(--color-white);
    color: var(--color-dark);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    
}

.footer-logo {
    height: 60px;
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-left p {
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.7;
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: var(--color-dark);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.footer-social {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.footer-social a {
    padding: var(--spacing-xs);
    /* background: rgba(0, 0, 0, 0.1); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* .footer-social a:hover {
    background: var(--color-accent);
} */

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: 1001;
}

.whatsapp-float,
.back-to-top {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-white);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-float {
    background: #25D366;
    margin-bottom: var(--spacing-xs);
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.back-to-top {
    background: var(--color-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-tertiary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(152, 168, 248, 0.4);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        gap: var(--spacing-lg);
    }
    
    .stats {
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .top-nav-right {
        flex-direction: column;
        gap: var(--spacing-xs);
        align-items: flex-end;
    }
    
    .main-nav .container {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: var(--spacing-xs);
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
        gap: var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-menu {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .top-nav {
        padding: 0.3rem 0;
    }
    
    .social-icons {
        gap: 0.3rem;
    }
    
    .social-icons a {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
    
    .email {
        font-size: 0.8rem;
    }
    
    .main-nav {
        padding: var(--spacing-xs) 0;
    }
    
    .nav-logo .logo {
        height: 35px;
    }
    
    .nav-menu {
        gap: var(--spacing-xs);
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-md);
    }
    
    .cta-button {
        padding: 0.7rem var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .product-card {
        padding: var(--spacing-md);
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .product-card h3 {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .footer-left {
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .floating-buttons {
        bottom: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    
    .whatsapp-float,
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.3rem;
    }
    
    .nav-link {
        display: block;
        text-align: center;
        width: 100%;
    }
}